package com.sinooceangroup.capital.sentinel.service.impl;

import org.springframework.stereotype.Component;

/**
 * SentinelResource fallBackClass 属性 对应的处理类实现
 *
 * @author: Leo.Wang, adwyxx@qq.com
 * @date: 2020/8/5 14:45
 */
@Component
public class DefaultFallBackHandler {
    public String sayHelloFallBackHandler(String name) {
        return "sayHello 访问被熔断了："+name;
    }

    public String blockFallBackHandler(String value) {
        return "block 访问被熔断了："+value;
    }

    public String rtFallBackHandler() {
        return "rt调用被熔断了";
    }

    public String exceptionRatioFallBackHandler() throws Exception {
        return "exceptionRatio调用被熔断了";
    }
}
